#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "Abstraction.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class PackageableElement;

/// <summary>
/// Manifestation
/// A manifestation is the concrete physical rendering of one or more model elements
/// by an artifact.
/// </summary>
class UMLMODEL_EXPORT Manifestation : public Abstraction {

public: // Constructors and destructors
    explicit Manifestation(const QString& umlType="uml::Manifestation");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// utilizedElement getter
    /// The model element that is utilized in the manifestation in an Artifact.
    /// </summary>
    shared_ptr<PackageableElement> utilizedElement() const;

    /// <summary>
    /// utilizedElement setter
    /// The model element that is utilized in the manifestation in an Artifact.
    /// </summary>
    void setUtilizedElement(shared_ptr<PackageableElement> value);

private: // Fields
    /// <summary>
    /// utilizedElement
    /// The model element that is utilized in the manifestation in an Artifact.
    /// </summary>
    shared_ptr<PackageableElement> utilizedElement_;

};

} // namespace uml
